<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>智慧配镜 - 商品编辑</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <style>
        .glass-effect {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
    </style>
</head>
<body class="bg-gradient-to-br from-blue-50 to-blue-100 min-h-screen">
    <div class="flex h-screen">
        <!-- 侧边栏 -->
        <div class="w-64 bg-white shadow-lg">
            <div class="p-6">
                <h1 class="text-2xl font-bold text-blue-800">智慧配镜</h1>
                <p class="text-sm text-gray-500 mt-1">管理后台</p>
            </div>
            <nav class="mt-6">
                <div class="px-4 py-2 text-xs font-semibold text-gray-500 uppercase tracking-wider">
                    主要功能
                </div>
                <a href="#" class="flex items-center px-4 py-3 text-gray-600 hover:bg-gray-50">
                    <img src="https://unpkg.com/lucide-static@latest/icons/home.svg" class="w-5 h-5 mr-3">
                    控制台
                </a>
                <a href="#" class="flex items-center px-4 py-3 text-blue-600 bg-blue-50">
                    <img src="https://unpkg.com/lucide-static@latest/icons/package.svg" class="w-5 h-5 mr-3">
                    商品管理
                </a>
                <a href="#" class="flex items-center px-4 py-3 text-gray-600 hover:bg-gray-50">
                    <img src="https://unpkg.com/lucide-static@latest/icons/clipboard-list.svg" class="w-5 h-5 mr-3">
                    订单管理
                </a>
                <a href="#" class="flex items-center px-4 py-3 text-gray-600 hover:bg-gray-50">
                    <img src="https://unpkg.com/lucide-static@latest/icons/users.svg" class="w-5 h-5 mr-3">
                    用户管理
                </a>
            </nav>
        </div>

        <!-- 主内容区域 -->
        <div class="flex-1 flex flex-col overflow-hidden">
            <!-- 顶部导航栏 -->
            <header class="bg-white shadow-sm">
                <div class="flex items-center justify-between px-6 py-4">
                    <div class="flex items-center">
                        <button class="p-2 rounded-lg hover:bg-gray-100">
                            <img src="https://unpkg.com/lucide-static@latest/icons/menu.svg" class="w-5 h-5">
                        </button>
                        <div class="ml-4">
                            <h2 class="text-lg font-semibold text-gray-900">商品编辑</h2>
                            <p class="text-sm text-gray-500">添加/修改商品信息</p>
                        </div>
                    </div>
                    <div class="flex items-center space-x-4">
                        <button class="p-2 rounded-lg hover:bg-gray-100">
                            <img src="https://unpkg.com/lucide-static@latest/icons/bell.svg" class="w-5 h-5">
                        </button>
                        <div class="flex items-center">
                            <img src="https://ui-avatars.com/api/?name=管理员&background=0D8ABC&color=fff" class="w-8 h-8 rounded-full">
                            <span class="ml-2 text-sm font-medium text-gray-700">管理员</span>
                        </div>
                    </div>
                </div>
            </header>

            <!-- 内容区域 -->
            <main class="flex-1 overflow-y-auto p-6">
                <div class="max-w-4xl mx-auto">
                    <form class="space-y-6">
                        <!-- 基本信息 -->
                        <div class="bg-white rounded-lg shadow-sm p-6">
                            <h3 class="text-lg font-medium text-gray-900 mb-4">基本信息</h3>
                            <div class="grid grid-cols-2 gap-6">
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">商品名称</label>
                                    <input type="text" class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">SKU编码</label>
                                    <input type="text" class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">商品分类</label>
                                    <select class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
                                        <option>镜框</option>
                                        <option>镜片</option>
                                        <option>配件</option>
                                    </select>
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">销售价格</label>
                                    <div class="relative">
                                        <span class="absolute inset-y-0 left-0 pl-3 flex items-center text-gray-500">¥</span>
                                        <input type="number" class="w-full border border-gray-300 rounded-lg pl-8 pr-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
                                    </div>
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">库存数量</label>
                                    <input type="number" class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">商品状态</label>
                                    <select class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
                                        <option>上架</option>
                                        <option>下架</option>
                                    </select>
                                </div>
                            </div>
                        </div>

                        <!-- 商品图片 -->
                        <div class="bg-white rounded-lg shadow-sm p-6">
                            <h3 class="text-lg font-medium text-gray-900 mb-4">商品图片</h3>
                            <div class="grid grid-cols-4 gap-4">
                                <div class="border-2 border-dashed border-gray-300 rounded-lg p-4 text-center">
                                    <img src="https://unpkg.com/lucide-static@latest/icons/upload.svg" class="w-8 h-8 mx-auto mb-2 text-gray-400">
                                    <p class="text-sm text-gray-500">点击上传主图</p>
                                </div>
                                <div class="border-2 border-dashed border-gray-300 rounded-lg p-4 text-center">
                                    <img src="https://unpkg.com/lucide-static@latest/icons/upload.svg" class="w-8 h-8 mx-auto mb-2 text-gray-400">
                                    <p class="text-sm text-gray-500">点击上传图片</p>
                                </div>
                                <div class="border-2 border-dashed border-gray-300 rounded-lg p-4 text-center">
                                    <img src="https://unpkg.com/lucide-static@latest/icons/upload.svg" class="w-8 h-8 mx-auto mb-2 text-gray-400">
                                    <p class="text-sm text-gray-500">点击上传图片</p>
                                </div>
                                <div class="border-2 border-dashed border-gray-300 rounded-lg p-4 text-center">
                                    <img src="https://unpkg.com/lucide-static@latest/icons/upload.svg" class="w-8 h-8 mx-auto mb-2 text-gray-400">
                                    <p class="text-sm text-gray-500">点击上传图片</p>
                                </div>
                            </div>
                        </div>

                        <!-- 商品描述 -->
                        <div class="bg-white rounded-lg shadow-sm p-6">
                            <h3 class="text-lg font-medium text-gray-900 mb-4">商品描述</h3>
                            <textarea rows="6" class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500"></textarea>
                        </div>

                        <!-- 商品规格 -->
                        <div class="bg-white rounded-lg shadow-sm p-6">
                            <div class="flex items-center justify-between mb-4">
                                <h3 class="text-lg font-medium text-gray-900">商品规格</h3>
                                <button type="button" class="px-4 py-2 text-sm text-blue-600 border border-blue-600 rounded-lg hover:bg-blue-50">
                                    添加规格
                                </button>
                            </div>
                            <div class="space-y-4">
                                <div class="flex items-center space-x-4">
                                    <input type="text" placeholder="规格名称" class="flex-1 border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
                                    <input type="text" placeholder="规格值" class="flex-1 border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
                                    <button type="button" class="p-2 text-red-600 hover:bg-red-50 rounded-lg">
                                        <img src="https://unpkg.com/lucide-static@latest/icons/trash-2.svg" class="w-5 h-5">
                                    </button>
                                </div>
                            </div>
                        </div>

                        <!-- 操作按钮 -->
                        <div class="flex justify-end space-x-4">
                            <button type="button" class="px-6 py-2 text-sm text-gray-600 border border-gray-300 rounded-lg hover:bg-gray-50">
                                取消
                            </button>
                            <button type="submit" class="px-6 py-2 text-sm text-white bg-blue-600 rounded-lg hover:bg-blue-700">
                                保存
                            </button>
                        </div>
                    </form>
                </div>
            </main>
        </div>
    </div>
</body>
</html> 